// 全局共享数据示例
import { DEFAULT_NAME } from '@/constants';
import { useState } from 'react';

const useUser = () => {
  console.log(68,localStorage.getItem('1'))
  let info = JSON.parse(sessionStorage.getItem('userInfo') || '{}')
  const [userInfo, setUserInfo] = useState<any>(info);
  return {
    userInfo,
    setUserInfo,
  };
};

export default useUser;
